package com.aabte.auth.shared.messaging.consumer;

import com.aabte.commons.ddd.shared.DomainEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class LogApplicationEventConsumer {

    @EventListener(DomainEvent.class)
    public void log(DomainEvent event) {
        log.info("account created. event: {}", event);
    }

}
